<?php

include("header.php");

        $plrData = array();
        
        $query = "select id,player_steam,player_ip,player_name,exploit_name,exploit_action,time,server_ip from ".$tbl_logged." WHERE id='".mysql_escape_string($_GET["id"])."'";
        $result = mysql_query($query);

        for($i=0;$row = mysql_fetch_array($result);$i++)
			{
               for($j=0;$j<8;$j++)
					$plrData[$i][$j] = $row[$j];
			}
        
		$server_ip=$plrData[0][7];
        
		$diff=$time_diff * 3600;
		$logtime=date("m-d-Y (H:i:s)",strtotime($plrData[0][6]) + $diff);

		print("
			<title>DoD Block Exploits - Detection Details</title>
		
			<table align=\"center\" cellpadding=\"5\" cellspacing=\"0\" rules=\"rows\">
			<tr height=\"25px\">
			<td colspan=\"2\" align=\"center\" style=\"background: #20578d\">Full Details</td>
			</tr>
		
			<tr class=\"row0\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row0'\" onClick=\"document.location='index.php'\">
			<td class=\"customtd1\" align=\"center\">Time:</td>
			<td class=\"customtd1\" align=\"center\">".$logtime."</td>
			</tr>
			
			<tr class=\"row1\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row1'\" onClick=\"document.location='index.php'\">
			<td class=\"customtd1\" align=\"center\">Name:</td>
			<td class=\"customtd1\" align=\"center\">".$plrData[0][3]."</td>
			</tr>
			
			<tr class=\"row0\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row0'\" onClick=\"document.location='index.php'\">
			<td class=\"customtd1\" align=\"center\">Steam ID:</td>
			<td class=\"customtd1\" align=\"center\">".$plrData[0][1]."</td>
			</tr>
			
			<tr class=\"row1\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row1'\" onClick=\"document.location='index.php'\">
			<td class=\"customtd1\" align=\"center\">IP Address:</td>
			<td class=\"customtd1\" align=\"center\">".$plrData[0][2]."</td>
			</tr>
			
			<tr class=\"row0\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row0'\" onClick=\"document.location='index.php'\">
			<td class=\"customtd1\" align=\"center\">Exploit:</td>
			<td class=\"customtd1\" align=\"center\">".$plrData[0][4]."</td>
			</tr>
			
			<tr class=\"row1\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row1'\" onClick=\"document.location='index.php'\">
			<td class=\"customtd1\" align=\"center\">Action:</td>
			<td class=\"customtd1\" align=\"center\">".$plrData[0][5]."</td>
			</tr>
			
			<tr class=\"row0\" onMouseOver=\"this.className='rowhover'\" onMouseOut=\"this.className='row0'\" onClick=\"document.location='view_detections.php?ip=".$server_ip."'\">
			<td class=\"customtd1\" align=\"center\">Server IP:</td>
			<td class=\"customtd1\" align=\"center\">".$server_ip."</td>
			</tr>
			");
				 
        print("
			<tr>
			<td align=\"center\" colspan=\"2\" height=\"25px\" style=\"background: #20578d\">* displaying full details *
			</td>
			</tr> 
			");

include("footer.php");

?>